package com.iwhalecloud.uncc.model;

import java.io.Serializable;

public class ResultDetail implements Serializable {
    private static final long serialVersionUID = 6141817526345090048L;
    private boolean result;
    private int resultCode;
    private String resultDesc;

    public ResultDetail() {
    }

    public ResultDetail(boolean result) {
        this.result = result;
    }

    public ResultDetail(boolean result, String resultDesc) {
        this.result = result;
        this.resultDesc = resultDesc;
    }

    public ResultDetail(boolean result, int resultCode) {
        this.result = result;
        this.resultCode = resultCode;
    }

    public ResultDetail(boolean result, int resultCode, String resultDesc) {
        this.result = result;
        this.resultCode = resultCode;
        this.resultDesc = resultDesc;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    @Override
    public String toString() {
        return "ResultDetail{" +
                "result=" + result +
                ", resultCode=" + resultCode +
                ", resultDesc='" + resultDesc + '\'' +
                '}';
    }
}
